import type { Res } from '@/api/types';

export function createRes<T>(data: T): Res<T> {
  return {
    code: 200,
    errMsg: '',
    data,
    page: 2,
    page_size: 20,
    total: 100
  };
}